
{{template "header.html" .}}

<div class="row-fluid"><div class="span12">
<h2>NSQD Hosts ({{.Producers | len}})</h2>
</div></div>

<div class="row-fluid"><div class="span12">
<table class="table table-bordered">
    <tr>
        <th>Host</th>
        <th>TCP Port</th>
        <th>HTTP Port</th>
        <th>Version</th>
        <th>Topics</th>
    </tr>
    {{range .Producers }}
    <tr {{if .OutOfDate}} class="warning"{{end}} >
        <td>{{.Address}}</td>
        <td>{{.TcpPort}}</td>
        <td>{{.HttpPort}}</td>
        <td>{{.Version}}</td>
        <td>
        {{if .Topics}}
            <span class="badge">{{.Topics | len}}</span>
            {{range .Topics}}
            <a href="/topic/{{.}}" class="label label-info">{{.}}</a>
            {{end}}
        {{end}}
        </td>
    </tr>
    {{ end }}
</table>
</div></div>

{{template "js.html" .}}
{{template "footer.html" .}}
